package com.solo.eggsolo.common.bean;

import com.solo.eggsolo.entity.User;

/**
 * 
 * @author chens
 * 
 *         Json数据更新操作的返回结果
 *
 */
public class JsonResult {
	private Integer code;
	private Boolean success = Boolean.FALSE;
	private String message;
	private String token;
	private Object object;
	private Integer total;
	

	public Integer getTotal() {
		return total;
	}


	public void setTotal(Integer total) {
		this.total = total;
	}


	public Object getObject() {
		return object;
	}


	public void setObject(Object object) {
		this.object = object;
	}


	public JsonResult() {
		super();
	}
	

	public JsonResult(Boolean success, String message) {
		super();
		this.success = success;
		this.message = message;
	}

	public JsonResult(Integer code, Boolean success, String message) {
		super();
		this.code = code;
		this.success = success;
		this.message = message;
	}
	
	public JsonResult(Integer code, Boolean success, String message,String token) {
		super();
		this.code = code;
		this.success = success;
		this.message = message;
		this.token = token;
	}
	
	public JsonResult(Integer code, Boolean success, String message,Integer total) {
		super();
		this.code = code;
		this.success = success;
		this.message = message;
		this.total = total;
	}
	
	public JsonResult(Integer code, Boolean success, String message,Object object) {
		super();
		this.code = code;
		this.success = success;
		this.message = message;
		this.object = object;
	}


	
	public String getToken() {
		return token;
	}


	public void setToken(String token) {
		this.token = token;
	}


	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Boolean getSuccess() {
		return success;
	}

	public void setSuccess(Boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
